package com.gesis.delegate;

import java.util.List;

import com.gesis.logic.IParameters;
import com.gesis.logic.imp.Parameters;

public class DAParameters {

	private static DAParameters INSTANCE = null;
	private IParameters iParam;

	private DAParameters() {
		iParam = new Parameters();
	}

	private synchronized static void createInstance() {
		if (INSTANCE == null) {
			INSTANCE = new DAParameters();
		}
	}

	public static DAParameters getInstance() {
		if (INSTANCE == null) {
			createInstance();
		}
		return INSTANCE;
	}

	public List<String> loadYears() throws Exception {
		return iParam.loadYears();
	}
}
